import request from '@/utils/request'

// 服务列表
export function getServiceLists(query) {
    return request({
        url: '/joining/busin.Service/getLists',
        method: 'post',
        params: query
    })
}
// 添加/修改 服务
export function setService(query) {
    return request({
        url: '/joining/busin.Service/setInfo',
        method: 'post',
        params: query
    })
}
// 获取服务详情
export function getServiceInfo(query) {
    return request({
        url: '/joining/busin.Service/getInfo',
        method: 'post',
        params: query
    })
}
// 服务状态 启用/禁用
export function setServiceStatus(query) {
    return request({
        url: '/joining/busin.Service/setStatus',
        method: 'post',
        params: query
    })
}
// 删除服务
export function delService(query) {
    return request({
        url: '/joining/busin.Service/delInfo',
        method: 'post',
        params: query
    })
}

// 服务分类列表
export function getCateLists(query) {
    return request({
        url: '/joining/busin.ServiceCate/getLists',
        method: 'post',
        params: query
    })
}

// PC_服务分类_启用/禁用
export function setCateStatus(query) {
    return request({
        url: '/joining/busin.ServiceCate/setStatus',
        method: 'post',
        params: query
    })
}

// PC_服务分类_编辑
export function setCateInfo(query) {
    return request({
        url: '/joining/busin.ServiceCate/setInfo',
        method: 'post',
        params: query
    })
}
// PC_服务分类_详情
export function getCateInfo(query) {
    return request({
        url: '/joining/busin.ServiceCate/getInfo',
        method: 'post',
        params: query
    })
}

// PC_服务分类_首页显示/不显示
export function setCateHome(query) {
    return request({
        url: '/joining/busin.ServiceCate/setHome',
        method: 'post',
        params: query
    })
}

// 获取当前加盟商所属三方列表
export function getPartnerLists(query) {
    return request({
        url: '/joining/busin.Service/getPartnerLists',
        method: 'post',
        params: query
    })
}
// PC_服务分类_排序
export function setSort(query) {
    return request({
        url: '/joining/busin.ServiceCate/setSort',
        method: 'post',
        params: query
    })
}

// PC_服务_设置/取消推荐
export function setServicePick(query) {
    return request({
        url: '/joining/busin.Service/setPick',
        method: 'post',
        params: query
    })
}

// PC_服务_排序
export function setServiceSort(query) {
    return request({
        url: '/joining/busin.Service/setSort',
        method: 'post',
        params: query
    })
}

// PC_服务_设置的抽成比例
export function setServiceTake(query) {
    return request({
        url: '/joining/busin.Service/setTake',
        method: 'post',
        params: query
    })
}
// PC_服务_获取设置的抽成比例
export function getServiceTake(query) {
    return request({
        url: '/joining/busin.Service/getTake',
        method: 'post',
        params: query
    })
}